#menu
  #loader{:style=> "display:none;text-align:center;background-color:black"}
    = image_tag "ajax-loader.gif", :id=>"wait_icon"
  %ul
    - if @see == 'supervision'
      %li= link_to 'voir la supervision', '/'
      %li= link_to 'voir les statistiques', '/reports', :class => 'selected'

    - if @see == 'stat'
      %li= link_to 'voir la supervision', '/', :class => 'selected'
      %li= link_to 'voir les statistiques', '/reports'

    - unless logged_in?
      %li= link_to_remote 'se connecter', { :url => {:controller => :sessions, :action=> :new, :room_id => params[:id]}, :before => "Element.show('loader');Element.show('wait_icon')", :complete => "Element.hide('loader');Element.hide('wait_icon')"}, :href => (url_for ({:controller => :sessions, :action => :new}))
    - else
      %li= link_to_remote 'ajouter un utilisateur', { :url => {:controller => :users, :action=> :new}, :before => "Element.show('loader');Element.show('wait_icon')", :complete => "Element.hide('loader');Element.hide('wait_icon')"}, :href => (url_for ({:controller => :users, :action => :new, :room_id => params[:id]}))
      %li= link_to 'se deconnecter', '/logout'
